﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools;

namespace EntityPet
{
    /// <summary>
    /// 宠物培训
    /// </summary>
    public class Pet_training
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; } = Guid.NewGuid();


        /// <summary>
        /// 宠物种类
        /// 猫/狗
        /// </summary>
        [Required]
        public Pets Type { get; set; }

        /// <summary>
        /// 宠物性别
        /// </summary>
        [Required]
        public Gender Gender { get; set; }


        /// <summary>
        /// 宠物品种
        /// </summary>
        [Required]
        public String? Variety { get; set; }



        /// <summary>
        /// 培训人姓名
        /// </summary>
        [Required]
        [StringLength(20)]
        public String? Name { get; set; }

        /// <summary>
        /// 培训开始时间
        /// </summary>
        [Required]
        public DateTime StarTime { get; set; }

        /// <summary>
        /// 培训总时长
        /// </summary>
        [Required]
        public DateTime SumTime { get; set; }

        
        /// <summary>
        /// 培训地点
        /// 上门/店里
        /// </summary>
        [Required]
        [StringLength(50)]
        public bool Location { get; set; }

        /// <summary>
        /// 宠物姓名
        /// </summary>
        [Required]
        [StringLength(20)]
        public String? PetName { get; set; }

        /// <summary>
        /// 宠物主人姓名
        /// </summary>
        [Required]
        [StringLength(20)]
        public String? OwnerName { get; set; }

        /// <summary>
        /// 宠物主人手机号
        /// </summary>
        [Required]
        [MinLength(11)]
        [MaxLength(12)]
        public String? PhoneNumber { get; set; }

        


    }
}
